﻿<%@ Register TagPrefix="ucCommon" TagName="Common" Src="../Common/Inc/Common.ascx" %>
<%@ Register TagPrefix="ucTop" TagName="Top" Src="../Common/Inc/Top.ascx" %>
<%@ Register TagPrefix="ucMenu" TagName="Menu" Src="../Common/Inc/Menu.ascx" %>
<%@ Register TagPrefix="ucTabTitle" TagName="TabTitle" Src="../Common/Inc/TabTitle.ascx" %>
<%@ Register TagPrefix="ucCopyright" TagName="Copyright" Src="../Common/Inc/Copyright.ascx" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Ref1012m.aspx.cs" Inherits="Updms.Ref.Ref1012m" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>▒ UPDMS [Ref1012m] ▒▒▒▒▒▒▒▒▒▒</title>
<ucCommon:Common id="Common" runat="server"></ucCommon:Common>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager runat="server" id="ScriptManager1" EnableScriptGlobalization="true"></asp:ScriptManager>

<table id="table_frame">
<tr>
	<td id="top_area" colspan="2">
		<!-- Top 시작 -->
		<ucTop:Top id="Top" runat="server"></ucTop:Top>
		<!-- Top 끝 -->
	</td>
</tr>
<tr>
	<td id="menu_area" runat="server">
		<!-- 메뉴 시작 -->
		<ucMenu:Menu id="Menu" runat="server"></ucMenu:Menu>
		<!-- 메뉴 끝 -->	
	</td>
	<td id="contents_area">
		<!-- 제목 시작 -->
		<ucTabTitle:TabTitle id="TabTitle" TagPrefixs="Ref1012m" runat="server"></ucTabTitle:TabTitle>
		<!-- 제목 끝 -->
		<!-- AJAX 시작 -->
		<asp:UpdatePanel ID="UpdatePanel1" runat="server">
		<Triggers>
			<asp:PostBackTrigger ControlID="ibtn_excel"/>
			<asp:PostBackTrigger ControlID="ibtn_save"/>
		</Triggers>
		<ContentTemplate>
		<!-- 버튼 시작 -->
		<div class="button_area">
			<asp:linkbutton id="ibtn_excel" Text="엑셀" runat="server" CssClass="ibtn ibtn_excel" OnClick="ibtn_excel_Click"></asp:linkbutton>
			<asp:linkbutton id="ibtn_favorite" Text="즐겨찾기" runat="server" CssClass="ibtn ibtn_favorite"></asp:linkbutton>
			<asp:linkbutton id="ibtn_map" Text="지도" runat="server" CssClass="ibtn ibtn_map" OnClientClick="showNaverMapMultiMarker();return false;"></asp:linkbutton>
			<asp:linkbutton id="ibtn_close" Text="닫기" runat="server" CssClass="ibtn ibtn_close" OnClientClick="javascript:window.close();return false;"></asp:linkbutton>
			<asp:linkbutton id="ibtn_delete" Text="삭제" runat="server" CssClass="ibtn ibtn_delete" OnClientClick="return chkDelete()" OnClick="ibtn_delete_Click"></asp:linkbutton>
			<asp:linkbutton id="ibtn_save" Text="저장" runat="server" CssClass="ibtn ibtn_save" OnClientClick="return chkSave()" OnClick="ibtn_save_Click"></asp:linkbutton>
			<asp:linkbutton id="ibtn_search" Text="검색" runat="server" CssClass="ibtn ibtn_search" OnClientClick="return chkSearch(event)" OnClick="ibtn_search_Click"></asp:linkbutton>
		</div>
		<!-- 버튼 끝 -->
		<!-- 검색 시작 -->
		<table class="table_search">
		<tr>
			<td class="lbl" width="10%"><asp:Literal id="ltr_search_shop_id" Text="업소명" runat="server" /></td>
			<td class="ctl" width="15%"><img src="../Common/Images/application_form.png" align="absmiddle" alt="multi_check" class="hand" onclick="showHiddenDiv('div_search_shop_id', event);" /></td>
			<td class="lbl" width="10%"><asp:Literal id="ltr_search_nick_nm" Text="예명" runat="server" /></td>
			<td class="ctl" width="15%"><asp:textbox id="txt_search_nick_nm" runat="server" Width="97%" CssClass="ib_b"></asp:textbox></td>
			<td class="lbl" width="10%"><asp:Literal id="ltr_search_tour_dt" Text="방문일" runat="server" /></td>
			<td class="ctl" width="20%"><asp:textbox id="txt_search_tour_dt_from" runat="server" CssClass="ib_b_dt"></asp:textbox>&nbsp;<img src="../Common/Images/calendar.png" id="ci_search_tour_dt_from" class="ci_calendar" runat="server">&nbsp;~&nbsp;<asp:textbox id="txt_search_tour_dt_to" runat="server" CssClass="ib_b_dt"></asp:textbox>&nbsp;<img src="../Common/Images/calendar.png" id="ci_search_tour_dt_to" class="ci_calendar" runat="server" /></td>
			<td class="lbl" width="10%"><asp:Literal id="ltr_search_homerun_yn" Text="홈런" runat="server" /></td>
			<td class="ctl" width="10%"><asp:DropDownList id="ddl_search_homerun_yn" runat="server" CssClass="ddl"></asp:DropDownList></td>
		</tr>
		<tr>
			<td class="lbl"><asp:Literal id="ltr_search_satisfaction" Text="만족도" runat="server" /></td>
			<td class="ctl"><asp:textbox id="txt_search_satisfaction" runat="server" Width="97%" Text="5.0" CssClass="ib_b"></asp:textbox></td>
			<td class="lbl"><asp:Literal id="ltr_search_contents" Text="내용" runat="server" /></td>
			<td class="ctl"><asp:textbox id="txt_search_contents" runat="server" Width="97%" CssClass="ib_b"></asp:textbox></td>
			<td class="lbl"><asp:Literal id="ltr_search_keyword" Text="키워드" runat="server" /></td>
			<td class="ctl"><asp:textbox id="txt_search_keyword" runat="server" Width="97.5%" CssClass="ib_b"></asp:textbox></td>
			<td class="lbl"><asp:Literal id="ltr_search_file_exist" Text="첨부파일" runat="server" /></td>
			<td class="ctl"><asp:checkbox id="cb_search_file_exist" runat="server"></asp:checkbox></td>
		</tr>
		</table>
		<!-- 검색 끝 -->
		<!-- 페이지모드 전환버튼 시작 -->
		<div class="page_mode_area">
			<span id="btn_chg_mode" onclick="return chgMode();" runat="server"></span>
			<span id="btn_init_mode" title="초기화" class="sbtn sbtn_init" onclick="return initDetail();"></span>
		</div>
		<!-- 페이지모드 전환버튼 끝 -->
		<!-- 디테일1 시작 -->
		<table class="table_detail">
		<tr>
			<td class="lbl" width="10%"><asp:Literal id="ltr_shop_id" Text="업소명" runat="server" /></td>
			<td class="ctl" width="21%"><asp:DropDownList id="ddl_shop_id" runat="server" CssClass="ddl"></asp:DropDownList></td>
			<td class="lbl" width="10%"><asp:Literal id="ltr_nick_nm" Text="예명" runat="server" /></td>
			<td class="ctl" width="21%"><asp:textbox id="txt_nick_nm" runat="server" Width="97.6%" CssClass="ib_b req"></asp:textbox></td>
			<td class="lbl" width="10%"><asp:Literal id="ltr_running_time" Text="런닝타임(분)" runat="server" /></td>
			<td class="ctl" width="28%"><asp:textbox id="txt_running_time" runat="server" Width="98.2%" CssClass="ib_b_R req"></asp:textbox></td>
		</tr>
		<tr>
			<td class="lbl" rowspan="8"><asp:Literal id="ltr_contents" Text="내용" runat="server" /></td>
			<td class="ctl" rowspan="8" style="padding:1px;" colspan="3"><asp:textbox id="txt_contents" runat="server" Width="98.5%" CssClass="ib_b tb_scroll" TextMode="MultiLine" Rows="17" Height="300"></asp:textbox><div id="div_admin_pw" visible="false" class="div_admin_pw_ref1012m" title="Administrator's password" runat="server"><asp:textbox id="txt_admin_pw" runat="server" Width="98%" CssClass="ib_b" TextMode="Password"></asp:textbox></div></td>
			<td class="lbl"><asp:Literal id="ltr_tour_dt_time" Text="방문일" runat="server" /></td>
			<td class="ctl"><asp:textbox id="txt_tour_dt" runat="server" CssClass="ib_b_dt req"></asp:textbox>&nbsp;<img src="../Common/Images/calendar.png" id="ci_tour_dt" class="ci_calendar" runat="server">&nbsp;&nbsp;&nbsp;&nbsp;<asp:DropDownList id="ddl_tour_hour" runat="server" CssClass="ddl" Width="50"></asp:DropDownList>&nbsp;:&nbsp;<asp:DropDownList id="ddl_tour_minute" runat="server" CssClass="ddl" Width="50"></asp:DropDownList></td>
		</tr>
		<tr>
			<td class="lbl"><asp:Literal id="ltr_place" Text="장소" runat="server" /></td>
			<td class="ctl"><asp:textbox id="txt_place" runat="server" Width="98.2%" CssClass="ib_b"></asp:textbox></td>
		</tr>
		<tr>
			<td class="lbl"><asp:Literal id="ltr_price" Text="가격" runat="server" /></td>
			<td class="ctl"><asp:textbox id="txt_price" runat="server" Width="98.2%" CssClass="ib_b_R req"></asp:textbox></td>
		</tr>
		<tr>
			<td class="lbl"><asp:Literal id="ltr_homerun_yn" Text="홈런" runat="server" /></td>
			<td class="ctl"><asp:radiobuttonlist id="rbl_homerun_yn" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" CssClass="rbl_flow"></asp:radiobuttonlist></td>
		</tr>
		<tr>
			<td class="lbl"><asp:Literal id="ltr_satisfaction" Text="만족도" runat="server" /></td>
			<td class="ctl">
				<ul class="horizontal">
					<li><asp:textbox id="txt_satisfaction" runat="server" Width="30" CssClass="ib_read_only"></asp:textbox></li>
					<li style="width:4px;height:23px">&nbsp;</li>
					<li><asp:textbox id="txt_satisfaction_slider" runat="server"></asp:textbox></li>
				</ul>
			</td>
		</tr>
		<tr>
			<td class="lbl"><asp:Literal id="ltr_keyword" Text="키워드" runat="server" /></td>
			<td class="ctl"><asp:textbox id="txt_keyword" runat="server" Width="98.2%" CssClass="ib_b"></asp:textbox></td>
		</tr>
		<tr>
			<td class="lbl" style="height:22px"><asp:linkbutton id="lbtn_latitude_longitude" runat="server" Font-Underline="True" OnClick="latitude_longitude_Click"><asp:Literal id="ltr_latitude_longitude" Text="위치" runat="server" /></asp:linkbutton></td>
			<td class="ctl">
				<ul class="horizontal">
					<li style="width:30%;"><asp:textbox id="txt_latitude" runat="server" CssClass="ib_b" Width="96%"></asp:textbox></li>
					<li style="width:1%;">&nbsp;</li>
					<li style="width:30%;"><asp:textbox id="txt_longitude" runat="server" CssClass="ib_b" Width="96%"></asp:textbox></li>
					<li style="width:1%;">&nbsp;</li>
					<li style="width:38%;"><img src="../Common/Images/map.png" alt="map" align="absmiddle" class="hand" onclick="showNaverMapEdit();" /></li>
				</ul>
			</td>
		</tr>
		<tr>
			<td class="lbl"><asp:Literal id="ltr_attachfile" Text="첨부파일" runat="server" /></td>
			<td class="ctl" style="padding:2px;" valign="top">
				<asp:GridView ID="gv_file_list" CssClass="table_file_list" GridLines="None" runat="server" AutoGenerateColumns="False" DataKeyNames="File_Nm,File_Size,File_Ext,File_Dir,File_W_Size,File_H_Size">
					<Columns>
						<asp:BoundField DataField="No" HeaderText="번호" HtmlEncode="False" >
							<ItemStyle HorizontalAlign="Center" Width="10%" Height="22" />
						</asp:BoundField>
						<asp:BoundField DataField="Download_Link" HeaderText="파일명" HtmlEncode="False" >
							<ItemStyle HorizontalAlign="Left" Width="80%" />
						</asp:BoundField>
						<asp:TemplateField HeaderText="삭제">
							<ItemTemplate>
								<asp:CheckBox ID="cb_select" runat="server" />
							</ItemTemplate>
							<ItemStyle Width="10%" HorizontalAlign="Center" />
						</asp:TemplateField>
					</Columns>
				</asp:GridView>
			</td>
		</tr>
		</table>
		<!-- 디테일1 끝 -->
		<!-- 리스트셋 시작 -->
		<table cellpadding="0" cellspacing="0" border="0" width="100%">
		<tr>
			<td>
				<!-- 검색어 시작 -->
				<div class="div_left">Keyword : <asp:label id="lbl_search_keyword" runat="server"></asp:label></div>
				<div class="div_right"><asp:checkbox id="cb_list_all" runat="server" AutoPostBack="True" OnCheckedChanged="cb_list_all_CheckedChanged" ToolTip="Show All"></asp:checkbox></div>
				<!-- 검색어 끝 -->
			</td>
		</tr>
		<tr>
			<td>
				<!-- 리스트 시작 -->
				<asp:GridView ID="GridView1" CssClass="table_gridview" GridLines="None" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound" OnRowCommand="GridView1_RowCommand" DataKeyNames="Seq,Shop_Id,Tour_Hour,Tour_Minute,Place,HomeRun_Yn,Contents,Keyword,Latitude,Longitude" ShowFooter="True">
					<Columns>
						<asp:TemplateField HeaderText="&lt;a href=&quot;javascript:void(0);&quot; onclick=&quot;checkBoxCheck('GridView1');&quot;&gt;S&lt;/a&gt;">
							<ItemTemplate>
								<input id="cb_check" class="cb" type="checkbox" onclick="reverseRow('GridView1', 0);" runat="server" />
							</ItemTemplate>
							<ItemStyle HorizontalAlign="Center" Width="2%" />
						</asp:TemplateField>
						<asp:BoundField HeaderText="번호" HtmlEncode="False" >
							<ItemStyle HorizontalAlign="Center" Width="4%" />
						</asp:BoundField>
						<asp:BoundField DataField="Seq" HeaderText="Seq(X)" Visible="False" />
						<asp:BoundField DataField="Shop_Id" HeaderText="Shop_Id(X)" Visible="False" />
						<asp:BoundField DataField="Shop_Nm" HeaderText="업소명" HtmlEncode="False" >
							<ItemStyle HorizontalAlign="Left" Width="8%" />
						</asp:BoundField>
						<asp:TemplateField HeaderText="예명">
							<ItemTemplate>
								<asp:LinkButton ID="lbtn_rc" runat="server" Text='<%# Bind("Nick_Nm") %>'></asp:LinkButton>
							</ItemTemplate>
							<ItemStyle HorizontalAlign="Left" Width="15%" />
							<HeaderStyle CssClass="lbtn_rc" />
						</asp:TemplateField>
						<asp:BoundField DataField="Running_Time" HeaderText="런닝타임(분)" HtmlEncode="False" >
							<ItemStyle HorizontalAlign="Right" Width="7%" />
						</asp:BoundField>
						<asp:BoundField DataField="Tour_Dt" HeaderText="방문일" HtmlEncode="False" >
							<ItemStyle HorizontalAlign="Center" Width="8%" />
						</asp:BoundField>
						<asp:BoundField DataField="Tour_Hour" HeaderText="Tour_Hour(X)" Visible="False" />
						<asp:BoundField DataField="Tour_Minute" HeaderText="Tour_Minute(X)" Visible="False" />
						<asp:BoundField DataField="Tour_Time" HeaderText="시간" HtmlEncode="False" >
							<ItemStyle HorizontalAlign="Center" Width="8%" />
						</asp:BoundField>
						<asp:BoundField DataField="Place" HeaderText="Place(X)" Visible="False" />
						<asp:BoundField DataField="Price" HeaderText="가격" DataFormatString="{0:#,##0}" HtmlEncode="False" >
							<ItemStyle HorizontalAlign="Right" Width="8%" />
						</asp:BoundField>
						<asp:BoundField DataField="HomeRun_Yn" HeaderText="HomeRun_Yn(X)" Visible="False" />
						<asp:BoundField DataField="HomeRun_Yn_Icon" HeaderText="홈런" HtmlEncode="False" >
							<ItemStyle HorizontalAlign="Center" Width="5%" />
						</asp:BoundField>
						<asp:BoundField DataField="Satisfaction" HeaderText="만족도" HtmlEncode="False" >
							<ItemStyle HorizontalAlign="Center" Width="5%" />
						</asp:BoundField>
						<asp:BoundField DataField="Contents" HeaderText="Contents(X)" Visible="False" />
						<asp:BoundField DataField="Contents_Word_Count" HeaderText="내용" DataFormatString="{0:#,##0}" HtmlEncode="False" >
							<ItemStyle HorizontalAlign="Right" Width="5%" />
						</asp:BoundField>
						<asp:BoundField DataField="Keyword" HeaderText="Keyword(X)" Visible="False" />
						<asp:BoundField DataField="Keyword_Word_Count" HeaderText="키워드" DataFormatString="{0:#,##0}" HtmlEncode="False" >
							<ItemStyle HorizontalAlign="Right" Width="5%" />
						</asp:BoundField>
						<asp:BoundField DataField="NaverMap_Link" HeaderText="위치" HtmlEncode="False" >
							<ItemStyle HorizontalAlign="Center" Width="5%" />
						</asp:BoundField>
						<asp:BoundField DataField="Attach_File_Info" HeaderText="파일" HtmlEncode="False" >
							<ItemStyle HorizontalAlign="Center" Width="5%" />
						</asp:BoundField>
					</Columns>
					<EmptyDataTemplate>
						<div id="no_data"></div>
					</EmptyDataTemplate>
				</asp:GridView>
				<!-- 리스트 끝 -->
			</td>
		</tr>
		<tr>
			<td>
				<!-- 페이징 시작 -->
				<div class="div_left">Result : <asp:label id="lbl_result_count" runat="server"></asp:label></div>
				<div class="div_right"><asp:label id="lbl_page" runat="server"></asp:label></div>
				<!-- 페이징 끝 -->
			</td>
		</tr>
		</table>
		<!-- 리스트셋 끝 -->
		<div id="div_search_shop_id" class="div_scroll div_multi_box" style="display:none;height:200px;width:140px;position:absolute;overflow-y:auto;">
			<asp:CheckBoxList id="cbl_search_shop_id" runat="server" RepeatDirection="Vertical" CssClass="cbl_vertical"></asp:CheckBoxList>
		</div>
		<!-- 카피라이트 시작 -->
		<ucCopyright:Copyright id="Copyright" runat="server"></ucCopyright:Copyright>
		<!-- 카피라이트 끝 -->
		<!-- 히든값 시작 -->
		<div id="hdn_data">
			<asp:Label id="lbl_pk" runat="server"></asp:Label>
			<asp:Label id="lbl_search_flag" runat="server"></asp:Label>
			<input id="h_no" type="hidden" name="h_no" runat="server" />
			<asp:linkbutton id="lbtn_init_detail" runat="server" OnClick="lbtn_init_detail_Click" />
			<asp:linkbutton id="lbtn_chg_mode" runat="server" OnClick="lbtn_chg_mode_Click" />
			<asp:linkbutton id="lbtn_admin_pw" runat="server" OnClick="lbtn_admin_pw_Click" />
			<asp:Label id="lbl_attach_file_info" runat="server" EnableViewState="true"></asp:Label>
		</div>
		<!-- 히든값 끝 -->
		<!-- CalendarExtender -->
		<act:CalendarExtender ID="ce_search_tour_dt_from" 
			TargetControlID="txt_search_tour_dt_from"
			Format="yyyy-MM-dd"
			PopupButtonID="ci_search_tour_dt_from"
			EnableViewState="False"
			CssClass="calendar"
			runat="server">
		</act:CalendarExtender>
		<act:CalendarExtender ID="ce_search_tour_dt_to" 
			TargetControlID="txt_search_tour_dt_to"
			Format="yyyy-MM-dd"
			PopupButtonID="ci_search_tour_dt_to"
			EnableViewState="False"
			CssClass="calendar"
			runat="server">
		</act:CalendarExtender>
		<act:CalendarExtender ID="ce_tour_dt" 
			TargetControlID="txt_tour_dt"
			Format="yyyy-MM-dd"
			PopupButtonID="ci_tour_dt"
			EnableViewState="False"
			CssClass="calendar"
			runat="server">
		</act:CalendarExtender>
		<!--입력필터-->
		<act:FilteredTextBoxExtender ID="fte_running_time"
			runat="server"
			TargetControlID="txt_running_time"
			FilterType="Custom, Numbers"
			ValidChars=",">
		</act:FilteredTextBoxExtender>
		<act:FilteredTextBoxExtender ID="fte_price"
			runat="server"
			TargetControlID="txt_price"
			FilterType="Custom, Numbers"
			ValidChars=",">
		</act:FilteredTextBoxExtender>
		<act:FilteredTextBoxExtender ID="fte_search_satisfaction"
			runat="server"
			TargetControlID="txt_search_satisfaction"
			FilterType="Custom, Numbers"
			ValidChars=".">
		</act:FilteredTextBoxExtender>
		<act:FilteredTextBoxExtender ID="fte_satisfaction"
			runat="server"
			TargetControlID="txt_satisfaction"
			FilterType="Custom, Numbers"
			ValidChars=".">
		</act:FilteredTextBoxExtender>
		<!-- 자동완성 시작 -->
		<act:AutoCompleteExtender ID="ace_search_nick_nm" 
			runat="server" 
			TargetControlID="txt_search_nick_nm"
			ServiceMethod="GetSearchData"
			ServicePath="../Common/Inc/AutoCompleteWebService.asmx"
			MinimumPrefixLength="1"
			CompletionSetCount="20"
			CompletionInterval="800"
			EnableCaching="true"
			UseContextKey="true"
			ContextKey="Ref1012m"
			CompletionListCssClass="ace_List"
			CompletionListItemCssClass="ace_ListItem"
			CompletionListHighlightedItemCssClass="ace_HighlightedItem">
		</act:AutoCompleteExtender>
		<act:AutoCompleteExtender ID="ace_nick_nm" 
			runat="server" 
			TargetControlID="txt_nick_nm"
			ServiceMethod="GetSearchData"
			ServicePath="../Common/Inc/AutoCompleteWebService.asmx"
			MinimumPrefixLength="1"
			CompletionSetCount="20"
			CompletionInterval="800"
			EnableCaching="true"
			UseContextKey="true"
			ContextKey="Ref1012m"
			CompletionListCssClass="ace_List"
			CompletionListItemCssClass="ace_ListItem"
			CompletionListHighlightedItemCssClass="ace_HighlightedItem">
		</act:AutoCompleteExtender>
		<!--슬라이더-->
		<act:SliderExtender ID="se_satisfaction" runat="server"
			TargetControlID="txt_satisfaction_slider"
			BoundControlID="txt_satisfaction"
			BehaviorID="SatisfactionSlider"
			EnableHandleAnimation="true"
            TooltipText="{0}"
			Length="200"
            Decimals="1"
            Minimum="5.0"
			Maximum="9.9" />
		</ContentTemplate>
		</asp:UpdatePanel>
		<!-- AJAX 끝 -->
	</td>
</tr>
</table>

<asp:updateprogress AssociatedUpdatePanelID="UpdatePanel1" ID="updateProgress" runat="server">
	<progresstemplate>
		<div id="progressBackgroundFilter"></div>
		<div id="processMessage">
			<div id="processing"></div>
			<img src="../Common/Images/processing_img.gif" />
		</div>
	</progresstemplate>
</asp:updateprogress>

</form>
<script type="text/javascript" language="javascript" defer="defer">
	//검색
	function chkSearch(evt) {
		var e = (!evt) ? window.event : evt;
		var keyCode = e.keyCode;

		//날짜형식
		if (!isDateHyphen($F("txt_search_tour_dt_from"))) {
			msgBox.alert(getMsg(MSG_ERR_082), setFocus, "txt_search_tour_dt_from", keyCode); //잘못된 날짜형식입니다.(YYYY-MM-DD)
			return false;
		}
		//날짜형식
		if (!isDateHyphen($F("txt_search_tour_dt_to"))) {
			msgBox.alert(getMsg(MSG_ERR_082), setFocus, "txt_search_tour_dt_to", keyCode); //잘못된 날짜형식입니다.(YYYY-MM-DD)
			return false;
		}

		// 검색기간
		if (!isDateSeq($F("txt_search_tour_dt_from"), $F("txt_search_tour_dt_to"))) {
			msgBox.alert(getMsg(MSG_ERR_022), null, null, keyCode); //시작일자가 종료일자보다 늦을수 없습니다
			return false;
		}
		return true;
	}

	//엔터검색
	function enterSearchOnPage(evt) {
		var e = (!evt) ? window.event : evt;
		var keyCode = e.keyCode;

		if (keyCode == 13) {
			if (chkSearch(evt)) {
				__doPostBack('ibtn_search', '');
			}
		}
	}

	//엔터검색 - 관리자비번
	function enterSearchAdminPw(evt) {
		var e = (!evt) ? window.event : evt;
		var keyCode = e.keyCode;

		if (keyCode == 13) {
			__doPostBack('lbtn_admin_pw', '');
		}
	}

	//디테일 초기화
	function initDetail() {
		__doPostBack('lbtn_init_detail', '');
	}

	//페이지모드 변경
	function chgMode() {
		__doPostBack('lbtn_chg_mode', '');
	}

	//리스트 선택시 슬라이드값 설정
	function setSliderValue(v, id) {
		var sliderbehaviour = $find(id);
		if (sliderbehaviour != null) {
			sliderbehaviour.set_Value(v);
		}
	}

	//저장
	function chkSave() {
		if ($F("txt_nick_nm").blank()) {
			msgBox.alert(getMsg(MSG_ERR_181), setFocus, "txt_nick_nm"); //예명을 입력해 주세요
			return false;
		}

		if ($F("txt_running_time").blank()) {
			msgBox.alert(getMsg(MSG_ERR_182), setFocus, "txt_running_time"); //런닝타임을 입력해 주세요
			return false;
		}

		if ($F("txt_tour_dt").blank()) {
			msgBox.alert(getMsg(MSG_ERR_183), setFocus, "txt_tour_dt"); //방문일을 입력해 주세요
			return false;
		}

		if ($F("txt_price").blank()) {
			msgBox.alert(getMsg(MSG_ERR_184), setFocus, "txt_price"); //가격을 입력해 주세요
			return false;
		}

		var pk = $get("lbl_pk").innerHTML;
		var MSG_ID = (pk == "") ? MSG_CFM_000 : MSG_CFM_028; //저장/수정
		msgBox.confirm(getMsg(MSG_ID), doSave); //XX하시겠습니까?

		return false;
	}

	//삭제
	function chkDelete() {
		if (!isCheckedOnGridView("GridView1", 0)) {
			msgBox.alert(getMsg(MSG_ERR_053)); //삭제할 항목을 선택하세요
			return false;
		}
		msgBox.confirm(getMsg(MSG_CFM_001), doDelete); //삭제하시겠습니까?
		return false;
	}

	//지도팝업
	function showNaverMapEdit() {
		goNaverMapEdit($F("txt_latitude"), $F("txt_longitude"), "txt_latitude", "txt_longitude");
	}

	//지도팝업 - 멀티마커
	function showNaverMapMultiMarker() {
		var url = "../Common/Inc/NaverMapMultiMarker.aspx?mode=REF_TOUR&param=";
		popupPage(url, 600, 600, 'yes', 'yes', 'yes');
	}

</script>
</body>
</html>